package com.example.plat.enity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "用户实体")
@TableName("user")
public class User {

    @ApiModelProperty("用户ID")
    @TableId(type = IdType.AUTO)
    Long id;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    String userName;

    @ApiModelProperty("密码")
    @TableField("password_")
    String password;

    @ApiModelProperty("昵称")
    @TableField("nickname")
    String nickname;

    @ApiModelProperty("头像")
    @TableField("avatar")
    String avatar;

    @ApiModelProperty("权限")
    @TableField("author")
    String author;
}
